var option = {
  
    tooltip: {
        trigger: 'item',
        formatter: '{a} <br/>{b} : {c} ({d}%)'
    },
    series: [
        {
            name: '安全培训',
            type: 'pie',
            radius: ['55%', '80%'],
            center:['50%','50%'],
            data: [
                {value: 335, name: '培训率100%',itemStyle:{color:'#ff688d'}},
                {value: 310, name: '90%<培训率<100%',itemStyle:{color:'#ff9c00'}},
                {value: 234, name: '80%<培训率<90%',itemStyle:{color:'#958bff'}},
                {value: 134, name: '培训率<80%',itemStyle:{color:'#fed100'}}
            ],
            labelLine: {
                show: false
            },
            label:{
show:false
            },
            emphasis: {
                itemStyle: {
                    shadowBlur: 10,
                    shadowOffsetX: 0,
                    shadowColor: 'rgba(0, 0, 0, 0.5)'
                }
            }
        }
    ]
};

var chart = echarts.init(document.getElementById('gongcheng_echart2'));
chart.setOption(option);
$('.gongcheng_nav li').click(function(){
    $(this).addClass('active').siblings().removeClass('active')
})